package cn.edu.hznu.coursework.service;

import java.util.List;

import cn.edu.hznu.coursework.entity.Course;
import cn.edu.hznu.coursework.entity.Student;
import cn.edu.hznu.coursework.entity.StudentWork;
import cn.edu.hznu.coursework.entity.TeacherWork;

public interface StudentService {
	
	public Student findStudentByNo(String no);
	
	public Student findStudentById(Integer id);
	
	public List<Student> findStudentsByCourses(List<Course> courses);
	
	public StudentWork findStudentWorkById(Integer id);
	
	public StudentWork findStudentWorkByStudentAndTeacherWork(Student student, TeacherWork teacherWork);
	
	public List<StudentWork> findStudentWorksByStudentAndCourse(Student student, Course course);
	
	public List<StudentWork> findStudentWorksByTeacherWork(TeacherWork teacherWork);
	
	public void addCourse(Student student, Course course) throws Exception;
	
	public void removeCourse(Student student, Course course) throws Exception;
	
	public void submitStudentWork(StudentWork work) throws Exception;
	
}
